package Chain_of_Responsibility_Pattern.OA;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        Position zr,jl,zjl;
        zr=new ZhuRen();
        jl=new JingLi();
        zjl=new ZongJingLi();
        zr.setPosition(jl);
        jl.setPosition(zjl);
        Note note1=new Note(2);
        Note note2=new Note(12);
        Note note3=new Note(29);
        Note note4=new Note(35);
        zr.processRequest(note1);
        zr.processRequest(note2);
        zr.processRequest(note3);
        zr.processRequest(note4);
    }
}
